<template>
	<view class="page_box">
		<u-navbar :is-back="false" title="广场" v-if="1" :border-bottom="false"></u-navbar>

		<!-- <u-tabbar active-color="#000000" inactive-color="#999999" icon-size="48" height="110" @change="changePages" v-model="current" :list="list" :mid-button="true"></u-tabbar> -->
		<yy-tip :isCustom="false" />

		<yy-login v-if="vuex_login"></yy-login>
		<yy-loading text="加载中.." mask="true" click="true" ref="loading"></yy-loading>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						iconPath: "../../static/tab/home.png",
						selectedIconPath: "../../static/tab/home-sele.png",
						text: '广场',
						customIcon: false,
						pagePath: '/pages/tab/index'
					},
					{
						iconPath: "../../static/tab/1v1.png",
						selectedIconPath: "../../static/tab/1v1-sele.png",
						text: '1v1',
						customIcon: false,
						pagePath: '/pages/tab/covey'
					},
					{
						iconPath: "../../static/tab/good.png",
						selectedIconPath: "../../static/tab/good.png",
						text: '推荐',
						midButton: true,
						customIcon: false,
						pagePath: '/pages/tab/recommend'
					},
					{
						iconPath: "../../static/tab/chat.png",
						selectedIconPath: "../../static/tab/chat-sele.png",
						text: '聊天',
						customIcon: false,
						pagePath: '/pages/tab/chat'
					},
					{
						iconPath: "../../static/tab/me.png",
						selectedIconPath: "../../static/tab/me-sele.png",
						text: '我的',
						isDot: false,
						customIcon: false,
						pagePath: '/pages/tab/me'
					},
				],
				current: 0
			};
		},
		onShow() {},
		onLoad(e) {},
		methods: {
			changePages(e,index) {
				console.log('e==>', e,index);
				if(e == 0) {
					this.l.to('/pages/tab/index')
				} else if ( e == 1) {
					this.l.to('/pages/tab/covey')
				} else if ( e == 2) {
					this.l.to('/pages/tab/recommend')
				} else if ( e == 3) {
					this.l.to('/pages/tab/chat')
				} else  {
					this.l.to('/pages/tab/me')
				}
			}
		}
	};
</script>

<style lang="scss" scoped>
	.content_box {}
</style>
